package com.mapper;

import com.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 注册 mapper层
 */
@Repository
public interface UserMapper {

  /**
   *  添加
   * @param user
   * @return
   */

  int insertUser(User user);

  /**
   *  查询注册用户
   * @param username
   * @return
   */

  User selectUserByUserName(String username);

}
